package com.yellow.orderservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 
 * @TableName user
 */
@TableName(value ="sys_user")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component

public class User implements Serializable {
    @TableId(type = IdType.AUTO)

    @TableField(value = "user_id")
    private Integer UserId;

    @TableField(value = "user_name")

    private String UserName;

    @TableField(value = "password")

    private String Password;

    @TableField(value = "user_email")

    private String UserEmail;

    @TableField(value = "user_type")

    private String UserType;

    @TableField(value = "phone_number")

    private String PhoneNumber;

    @TableField(value = "avatar_url")

    private String AvatarUrl;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}